package com.totoro.service;

import com.totoro.pojo.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author TOTORO
 * @date 2021/7/2 9:47
 */
public interface AddressService {
    List<Address> findAddressByUid( int uid);

    int addAddress(Address address);

    Address findAddressByAid(int aid);

    int updateAddressNotDefaultByUidAndAid(int uid, int aid);

    int updateAddressIsDefaultByAid(int aid);

    Integer getAddressLength();

    Integer updateAddressByAid(Address address);

    Integer deleteAddress(int aid);

}
